package com.hmall.api.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("cart-service")
public interface CartClient {

    //    /**
//     * 批量删除购物车中商品
//     * @param ids
//     */
//    @DeleteMapping("/carts")
//    public void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);

    @DeleteMapping("/carts/inner")
    public void deleteCartItemByIds(@RequestParam("userId")Long userId , @RequestParam("ids") List<Long> ids);
}